<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" href="../../css/common.css">
<link rel="stylesheet" href="slider.mobile.css">
</head>
<body>
    <div style="height: 15em; width: 100%; margin: 5em 0em;" id="slider"></div>
    <div style="height: 15em; width: 100%; margin: 5em 0em;" id="slider2"></div>
    
</body>
<script src="../../js/md.zepto.js"></script>
<script src="slider.mobile.js"></script>
<script>
    var data = [{url: "1.jpg", name: "装酷"},{url: "2.jpg", name: "萍水相逢"}, {url: "3.jpg", name: "啦啦啦啦啦"}]
    var keys = {"imgUrl": "url"}
    var opts = {"selector": "#slider", data: data, keys: keys, speed: 3000, cursor: true, shownum: true, desc: true, callback: callback};
    function callback(id, obj) {
    	alert(id);
    }
    mdSlider(opts);
    var opts2 = {"selector": "#slider2", data: data, keys: keys, speed: 3000, cursor: true, shownum: true, desc: true};
    //mdSlider(opts2);
</script>
</html>